package designpatterns.strategy;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2022/1/28 8:47
 */
public class Context {

    private final Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2) {
        return strategy.calculate(num1, num2);
    }
}
